package cn.tt.tuantuanerp.tuantuanerp.comment.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
*用户新增类
*@author gudiwen
*@version 0.0.1
*/

@Data
public class UserAddNewDTO implements Serializable{

    /**
    *用户真实姓名
    */
    @ApiModelProperty(value = "用户真实姓名",example = "张三",required = true)
    @NotNull(message = "必须提交真实姓名")
    @NotEmpty(message = "真实姓名不能为空")
    @NotBlank(message = "真实姓名不能为空")
    private String userName;
    /**
     * 用户性别
     */
    @ApiModelProperty(value = "用户性别",example = "男")
    @NotEmpty(message = "性别不能为空")
    @NotBlank(message = "性别不能为空")
    private String gender;
    /**
    *用户登录名
    */
    @ApiModelProperty(value = "用户登录名",example = "zs",required = true)
    @NotNull(message = "必须提交登录名")
    @NotEmpty(message = "登录名不能为空")
    @NotBlank(message = "登录名不能为空")
    private String loginName;
    /**
    *登录密码
    */
    @ApiModelProperty(value = "登录密码",example = "123456",required = true)
    @NotNull(message = "必须提交密码")
    @NotEmpty(message = "密码不能为空")
    @NotBlank(message = "密码不能为空")
    private String password;
    /**
     * 用户头像
     */
    @ApiModelProperty(value = "用户头像",example = "https://img0.baidu.com/it/u=1088754973,1390499664&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1666285200&t=e79af4b3d19696c0b618c9fe06b6da9f")
    private String avatar;
    /**
    *用户状态(在职,离职)  默认在职
    */
    @ApiModelProperty(value = "用户状态",example = "1")
    private Integer status;
    /**
    *手机号
    */
    @ApiModelProperty(value = "手机号",example = "123456784",required = true)
    @NotNull(message = "必须提交手机号")
    @NotEmpty(message = "手机号不能为空")
    @NotBlank(message = "手机号不能为空")
    private String phone;
    /**
    *邮箱
    */
    @ApiModelProperty(value = "邮箱",example = "123456784@123.com",required = true)
    @NotNull(message = "必须提交邮箱")
    @NotEmpty(message = "邮箱不能为空")
    @NotBlank(message = "邮箱不能为空")
    private String email;
    /**
    *是否启用，1=启用，0=未启用  默认启用
    */
    @ApiModelProperty(value = "是否启用,1=启用，0=未启用",example = "1")
    private Integer enable;
    /**
     * 用户角色列表
     */
    @ApiModelProperty(value = "用户角色列表",example = "2,3",required = true)
    @NotNull(message = "必须提交角色列表")
    @NotEmpty(message = "角色列表不能为空")
    private Long[] roleIds;
}
